<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>问题反馈</title>
	<%@ include file="/view/common/tags.jsp"%>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1" name="viewport" />
    <meta content="" name="description" />
    <meta content="" name="author" />
<body>
<section class="content">
 	<div class="row"> 
    	<div class="col-md-12">
	     	<div class="box">
	            <div class="box-body">
	               <div class="panel panel-default">
	                    <div class="panel-body" style="padding-bottom:5px;">
	                        <form class="form-horizontal" action="/pubgProblem/list" method="post" id="pubgProblemForm">
	                            <div class="searchMenu">
	                                <div  class="mal10">
	                                    <button type="button"  class="btn btn-primary btn-sm"  onclick="findData()"><span class='glyphicon glyphicon-search'></span>查&nbsp;询</button>
	                                </div>
	                            </div>
	                        </form>
	                    </div>
	                </div>
	                <table class="table-scrollable table table-hover  table-bordered" id="pubgProblemTable" data-striped=true>
	                    <thead>
	                        <tr>
	                            <th data-field="index" data-align="center" data-formatter="indexFormatter" data-sortable="false">序号</th>
								<th data-field="clubName" data-align="center">俱乐部名称</th>
								<th data-field="teamName" data-align="center">战队名称</th>
								<th data-field="userAccount" data-align="center">反馈用户</th>
								<th data-field="feedbackTypeName" data-align="center">反馈类型</th>
								<th data-field="content" data-align="center">描述</th>
								<th data-field="img" data-align="center" data-formatter="picUrlFormatter">截图</th>
								<th data-field="contactWay" data-align="center">联系方式</th>
								<th data-field="submitTime" data-align="center" data-formatter="timeFormatter_point" >提交时间</th>
	                            <th data-field="optButton" data-align="center" data-sortable="false" data-formatter="buttonFormatter">操作</th>
	                        </tr>
	                    </thead>
	                </table>
	            </div>
	        </div>
		</div>
	</div>
	<input type="hidden" id="msgg"  value="${msg}">
	<input type="hidden" id="code"  value="${code}">
</section>
   <%@ include file="/view/common/footer.jsp"%>
</body>
<script>
    var msgg = $("#msgg").val();
    var code = $("#code").val();
    $(function(){
        if( code== 1) {
            layer.msg(msgg);
        }
    });

    function picUrlFormatter(value, row) {
        var html="";
        if (value != null && value != "") {
            html = "<img src='"+value+"' width='100' height='100' />";
        }
        return html;
    }

    //操作按钮
    function buttonFormatter(value, row,index) {
    }

    $(function(){
        $("#pubgProblemTable").bootstrapTable({
            url: JSSYSMANAGERV1 + "/pubgProblem/listPubgProblem.json",
            method:"get",
            pagination:true,
            sidePagination:"server",
            queryParams: function(params) {
                return $.extend({}, params, parseJson(decodeURIComponent($("#pubgProblemForm").serialize())));
            }
        });
    })
    function findData(){
        $("#pubgProblemTable").bootstrapTable("refresh",{} );
    }
</script>
</html>